package com.crowd;

import com.crowd.spring.entity.Employee;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

//表示当前类是一个配置类，作用大致于Spring-context.xml配置文件
@Configuration
public class MyAnnotationConfiguration {

    @Bean
    public Employee getEmployee(){
        return new Employee();
    }
}
